﻿@model Beeldbankmvc.Models.PublishRightsModel
@using Beeldbankmvc.Code
@{
    ViewBag.Title = "Nieuwe publicatierechten";
    Layout = "~/Views/Shared/Layout.cshtml";
    Html.RenderAction("AdminMenu", "Miscellaneous");
}

<h2>@ViewBag.Title</h2>

<script src="@AppHelper.getContent("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@AppHelper.getContent("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend style="Display: none;">Velden</legend>

        <div class="display-label">
            @Html.LabelFor(model => model.beheerUserList)
        </div>
        <div class="display-field">
            @Html.DropDownListFor(model => model.Beheerder, new SelectList(Model.beheerUserList, "userId","name"))
         </div>

        <div class="display-label">
            @Html.LabelFor(model => model.eindRedacteurUserList)
        </div>
        <div class="display-field">
            @Html.DropDownListFor(model => model.EindRedacteur, new SelectList(Model.eindRedacteurUserList, "userId","name"))
         </div>

        <div>
            <input type="submit" value="Opslaan" /> |
            <a href="@Url.Action("Index", "PublishRights")"> <img alt="Terug naar het overzicht" title="Terug naar het overzicht" src="@AppHelper.getContent("~/Content/images/list.jpg")" /> Terug naar het overzicht</a>
        </div>
    </fieldset>
}


